cmake_minimum_required( VERSION 2.6 FATAL_ERROR )
PROJECT(school-hangover)
enable_language(CXX)

SET(CMAKE_MODULE_PATH "${BTD_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")


FIND_PACKAGE(OpenGL)
#FIND_PACKAGE(OpenSceneGraph 2.8.2 REQUIRED QUIET COMPONENTS osg osgText osgManipulator osgViewer osgDB)
FIND_PACKAGE(OpenSceneGraph 2.8.0 REQUIRED QUIET COMPONENTS osg osgDB osgUtil osgGA osgText osgParticle osgViewer osgShadow)
FIND_PACKAGE(Lua51)


SET(SRC_FILE
	src/Brain.h
	src/Brain.cpp
	src/Camera.h
	src/Camera.cpp
	src/CameraManipulator.h
	src/CameraManipulator.cpp
	src/Dialog.h
	src/Dialog.cpp
	src/DialogManager.h
	src/DialogManager.cpp
	src/Door.h
	src/Door.cpp	
	src/Hud.cpp
	src/Hud.h
	src/Engine.h
	src/Engine.cpp
	src/FlowerPot.h
	src/FlowerPot.cpp
	src/InteractiveObject.h
	src/InteractiveObject.cpp
	src/Inventory.h
	src/Inventory.cpp
	src/lunar.h
	src/main.cpp
	src/Object.h
	src/Object.cpp
	src/ObjectManager.h
	src/ObjectManager.cpp
	src/Player.h
	src/Player.cpp
	src/Room.h
	src/Room.cpp
	src/Singleton.h
	src/StageManager.h
	src/StageManager.cpp
	src/Stage.h
	src/Stage.cpp
	src/SuspicionGauge.h
	src/SuspicionGauge.cpp
	src/Table.h
	src/Table.cpp
	src/Timer.h
	src/Timer.cpp
	src/Utils.h
	src/Wall.h
	src/Wall.cpp	
	src/Clue.h
	src/Clue.cpp	
	src/Cloth.h
	src/Cloth.cpp
	src/Friend.h
	src/Friend.cpp
	src/Character.h
	src/Character.cpp	
	src/Enemy.h
	src/Enemy.cpp
)


SET (EXECUTABLE_NAME
bin/school-hangover
)

add_executable (
${EXECUTABLE_NAME}
${SRC_FILE}
)

INCLUDE_DIRECTORIES( ${OPENSCENEGRAPH_INCLUDE_DIRS} )
TARGET_LINK_LIBRARIES( ${EXECUTABLE_NAME} ${OPENSCENEGRAPH_LIBRARIES} )


INCLUDE_DIRECTORIES( ${LUA_INCLUDE_DIR} )

target_link_libraries (
${EXECUTABLE_NAME}
${LUA_LIBRARIES}
)

INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_DIR} )
TARGET_LINK_LIBRARIES( ${EXECUTABLE_NAME} ${OPENGL_LIBRARIES} )





